#include <Ape/IO/SerialDeviceOutput.h>

namespace Ape {
	namespace IO {
		SerialDeviceOutput::SerialDeviceOutput (writer_f writer, void* context)
				: Write (writer),
				m_Context (context)
		{}
		SerialDeviceOutput::~SerialDeviceOutput() {}
		
		OutputStream& SerialDeviceOutput::operator << (const Object& o) {
			if (Write)
				Write (o);
			return *this;
		}
	}
}
